
import WtfGui;

gDefaultFont = WtfGui.Font("v_gui_font");

class TreeView(WtfGui.LayoutHider):
	def __init__(self, caption, font = gDefaultFont):
		opts = WtfGui.LayoutHiderCreationOptions();
		WtfGui.LayoutHider.__init__(self, opts, 1, WtfGui.Label("+ " + caption, font));
		
	def AddChild(self, child):
		p = child.padding;
		p.x = 10;
		child.padding = p;
		WtfGui.LayoutHider.AddChild(self, child);
	